package com.whj.apiboss.service.impl;

import com.whj.apiboss.remote.ServiceDriverClient;
import com.whj.apiboss.service.CarService;
import com.whj.internalcommon.dto.Car;
import com.whj.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: wanghaijun
 * @Date: 2023/1/14 - 01 - 14 - 12:10 
 * @Description: com.whj.apiboss.service.impl
 */

@Service
public class CarServiceImpl implements CarService {

    @Autowired
    private ServiceDriverClient serviceDriverClient;

    /**
     * 调用service-driver-user 添加车辆
     * @param car
     * @return
     */
    @Override
    public ResponseResult addCar(Car car) {
        ResponseResult responseResult = serviceDriverClient.addCar(car);
        return responseResult;
    }
}
